/*
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License version 2 as published by the Free Software Foundation.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#ifndef WAYPOINT_H
#define WAYPOINT_H
#include "garmin.h"
#include "position.h"
#include <QtCore>


class Waypoint
{
public:
  Waypoint();
  Waypoint(D304*);
  QString toString();

  Position getPosition();
  void setPosition(Position val);
  QDate getDate();
  QTime getTime();
  void setTime(QTime val);
  float32 getAlt();
  void setAlt(float32 val);
  float32 getDistance();
  void setDistance(float32 val);
  uint8 getHeart_rate();
  void setHeart_rate(uint8 val);
  uint8 getCadence();
  void setCadence(uint8 val);
  bool getSensor();
  void setSensor(bool val);


private:
  Position          position;
  QTime             time;
  QDate             date;
  float32           alt;
  float32           distance;
  uint8             heart_rate;
  uint8             cadence;
  bool              sensor;
};



#endif // WAYPOINT_H
